<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<h:panelGroup rendered="#{ not empty atendenteARSBean.atendenteARSs}">
		<h2>Lista de Atendentes ARS</h2>




		<h:dataTable id="Tabela" value="#{atendenteARSBean.atendenteARSs}"
			var="atendenteARS">

			<h:column>
				<f:facet name="header">
					<h:outputText value="Id" />
				</f:facet>
				#{atendenteARS.id}
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="Nome" />
				</f:facet>
				#{atendenteARS.nome}
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="CPF" />
				</f:facet>
				#{atendenteARS.cpf}
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="Telefone" />
				</f:facet>
				#{atendenteARS.telefone}
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Endereço" />
				</f:facet>
				#{atendenteARS.endereco}
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="Alterar" />
				</f:facet>

				<f:ajax event="click" render="@all"
					listener="#{atendenteARSBean.preparaAlteracao}">
					<h:commandLink>
						<f:param name="id" value="#{atendenteARS.id}" /> Alterar
 					</h:commandLink>
				</f:ajax>
			</h:column>

			<h:column>
				<f:facet name="header">
					<h:outputText value="Remover" />
				</f:facet>

				<f:ajax event="click" render="@all"
					listener="#{atendenteARSBean.remove}" immediate="true">
					<h:commandButton value="Remover">
						<f:param name="id" value="#{atendenteARS.id}" />
					</h:commandButton>
				</f:ajax>
			</h:column>
		</h:dataTable>
	


	</h:panelGroup>
</ui:composition>
